﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;

namespace Shows_3D
{
    public class LoginInputField : MonoBehaviour
    {
        [SerializeField]
        private TMP_InputField _text;
        public string text
        {
            get
            {
                return _text.text;
            }
        }

        [SerializeField]
        private TextMeshProUGUI _message;
        public Data data
        {
            set
            {
                _message.gameObject.SetActive(true);
                if(value.datas.ret == true)
                {
                    _message.color = Color.white;
                    _message.text = value.datas.msg;
                }
                else
                {
                    _message.color = Color.red;
                    _message.text = value.datas.msg;
                }
            }
        }
    }
}
